home *** CD-ROM | disk | FTP | other *** search
- From: Tendrils@msn.com (kelvin )
- Subject: RE: Memory allocation.
- Date: 11 Feb 96 07:38:02 -0800
- References: <1996Feb10.161530.26449@wisipc.weizmann.ac.il>
- Message-ID: <00001a81+00009e86@msn.com>
- Path: news.msn.com!msn.com
- Newsgroups: comp.lang.c++
- Organization: The Microsoft Network (msn.com)
-
- The program may or may not works...
- try adding another function call in main()...before cout.
-
- e.g.
-
- int func2(int input)
- {
- return input;
- }
-
- int
- main()
- {
- int* x=func();
-
- int y=func2(22); // add this!!!
-
- cout<<x[2]<<endl;
-
- return(1);
- }
-